home *** CD-ROM | disk | FTP | other *** search
/ The 640 MEG Shareware Studio 2 / The 640 Meg Shareware Studio CD-ROM Volume II (Data Express)(1993).ISO / ss / anlytc_1.zip / GRF.CMD < prev    next >
OS/2 REXX Batch file  |  1985-09-25  |  3KB  |  82 lines

  1. VM
  2. * (above command turns off screen display update. We may want to
  3. * turn off recalculate too via RM, but let user decide.)
  4. * COMMAND FILE TO GRAPH ONE OR TWO SECTIONS OF A
  5. * SPREADSHEET.
  6. * INVOKE WITH THE COMMAND @GRF.CMD" AT COMMAND LEVEL (OR
  7. * BIND IT TO A KEY).
  8. *  IGNORE EXTRA PROMPTS AT THE COMMAND LINE.
  9. *  THIS FILE WILL RUN FASTER IF YOU REMOVE ALL THESE COMMENT LINES
  10. *  (I.E. ALL LINES THAT START WITH * CHARACTER)
  11. *
  12. * FIRST SAVE THE SHEET (NUMERICALLY ONLY FOR SPACE & SPEED)
  13. * DON'T BOTHER SAVING WHERE WE ARE JUST HERE...
  14. %IGNORE prompts here... saving data for graphics...%*%%
  15. *
  16. * Notice we can use techniques similar to this to get graphs
  17. * from either of the two BASIC graphics programs, though they
  18. * need to be modified to read their inputs off files we can
  19. * create. This set of commands uses ACGRAF to produce histograms
  20. * or scatterplots. If one spreadsheet range is given, it will be
  21. * output as a histogram. If two are given (separated by space),
  22. * they will be scatter plotted, the first range against the
  23. * second. Ranges may be a row or a column (or part thereof).
  24. *  These comments should be left in, as they give a short delay for
  25. * reading a message.
  26. *  Invoke this procedure with @GRF.CMD from AnalytiCalc. Or bind
  27. * a function key to mean @GRF.CMD by editing AUXKPD.TXT.
  28. *  Here we actually save the sheet. Note if we did a PDN it'd
  29. * save the sheet according to the display mapping so we could
  30. * do our plots of what's displayed in the order displayed, rather
  31. * than physical order. Edit these procedures to suit yourself.
  32. *
  33. L A1
  34. PPN
  35. TMP.PCC
  36. 0
  37. 0
  38. * null command to clear command line
  39. % %%%
  40. %NOW give region names separated by space if two rather than one.%*%%
  41. *
  42. *
  43. *
  44. *
  45. * DELAY SPACERS SO THIS FLASHED MESSAGE CAN BE NOTICED
  46. *
  47. *
  48. *
  49. *
  50. *
  51. *
  52. *
  53. *
  54. * erase flashed message by couple of commands.
  55. % %%%
  56. %                                                                %*%%
  57. % %%%
  58. * NOW TMP.PCC HAS THE SAVED INFO, SO NOW FIND OUT WHERE THE
  59. * USER WANTS GRAPHED. Then fire up GRF.BAT to run ACGRAF to
  60. * actually generate the plot. Then we'll clean up.
  61. * NOTE: GRF.BAT GENERATES LINEAR-LINEAR PLOTS WITH ORIGIN
  62. * INCLUDED. MODIFY THE "PP" TO "NN", "LL", "NL" OR SOME
  63. * SUCH TO EITHER NOT INCLUDE THE ORIGIN OR CHANGE TO A
  64. * LOG OR SEMILOG PLOT.
  65. *  Also note that you can put output to a printer by replacing
  66. * CON: in GRF.BAT by PRN: instead.
  67. * Here ask user for what region(s) he wants to plot.
  68. *
  69. %Enter region name(s) to graph:%}grf %\%
  70. *Now we've got control back, so erase tmp.pcc so the disk
  71. * stays cleaned up.
  72. * Comment this out if you want to leave the savefile around for
  73. * multiple graphs.
  74. $DEL TMP.PCC
  75. * If we had used RM in the start to turn off recalculation,
  76. * we'd want to use R here to turn it back on, but omit here.
  77. *
  78. * Turn on screen redraw.
  79. V
  80. * THAT'S IT.
  81.  
  82.